package com.health.personal.api;

import com.health.personal.api.factory.RemoteTUserFallbackFactory;
import com.health.system.api.model.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import com.health.common.core.constant.ServiceNameConstants;
import com.health.common.core.domain.R;

/**
 * 患者服务
 *
 * @author health
 */
@FeignClient(contextId = "RemoteTUserService", value = ServiceNameConstants.HEALTH_PERSONAL_SERVICE, fallbackFactory = RemoteTUserFallbackFactory.class)
public interface RemoteTUserService
{
    /**
     * 通过邮件名查询患者信息
     *
     * @param email 用户名
     * @return 结果
     */
    @GetMapping("TUser/findTUser/{email}")
    public R<LoginUser> selectByEmail(@PathVariable("email") String email);
}

